home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Macintosh CD: Powe…osh 6100/7100/8100 Series
/
Apple Macintosh CD - Power Macintosh 6100, 7100, 8100 series.7z
/
Apple Macintosh CD - Power Macintosh 6100, 7100, 8100 series.bin
/
Power Macintosh Demo Apps
/
Segue
/
standard.t
< prev
next >
Wrap
Text File
|
1994-01-12
|
2KB
|
108 lines
/*
** standard.t
**
** Standard definitions for T.
**
** Copyright (c) 1992,1993 by Segue Software, Inc.
** All Rights Reserved.
*/
/****************************************************************************/
/*** CONSTANTS ***/
const hHost = <<HANDLE>> 1;
/*** T RUNTIME EXCEPTION NUMBERS ***/
const E_ABORT = -1;
const E_ACCESS = -2;
const E_ARRAY_SIZE = -3;
const E_ASSERT_FAILED = -4;
const E_ASSIGN = -5;
const E_BAD_ARG = -6;
const E_BAD_INDEX = -7;
const E_BUSY = -8;
const E_CLASS_MISMATCH = -9;
const E_CONST = -10;
const E_DEADLOCK = -11;
const E_DISABLED = -12;
const E_DIVIDE_BY_ZERO = -13;
const E_DRIVER = -14;
const E_HANDLE = -15;
const E_INCOMPAT_TYPES = -16;
const E_INTERNAL = -17;
const E_LIST_FULL = -18;
const E_NO_RETVAL = -19;
const E_NULL = -20;
const E_NUM_ARGS = -21;
const E_SEMAPHORE = -22;
const E_STR_OVERFLOW = -23;
const E_SYSTEM = -24;
const E_TIMER = -25;
const E_TYPE_MISMATCH = -26;
const E_UNDEFINED = -27;
const E_UNSUPPORTED = -28;
const E_VAR_EXPECTED = -29;
const E_VAR_NOT_SET = -30;
const E_WINDOW_TAG = -31;
const E_ZERO_STEP = -32;
/*** COMMON TEST DRIVER EXCEPTIONS ***/
const E_TD_ABORT = -10000;
const E_TD_BAD_ARG = -10100;
const E_TD_FILE_ERROR = -10200;
const E_TD_INVALID_REQUEST = -10300;
const E_TD_OUT_OF_MEMORY = -10400;
const E_TD_UNKNOWN_FUNCTION = -10500;
/*** DATA TYPES ***/
type HFILE is handle;
type HTIMER is handle;
type HMACHINE is handle;
type HDRIVER is handle;
type FILEMODE is enum
{
FM_READ, FM_WRITE, FM_APPEND
}
type CALL is record
{
string sFunction;
string sModule;
integer iLine;
}
type CALL_LIST is list of CALL;
type FILEINFO is record
{
string sName;
boolean bIsDir;
integer iSize;
}
type FILEINFO_LIST is list of FILEINFO;
type GUITYPE is enum
{
GT_MAC, GT_MSW, GT_MOTIF, GT_OPENLOOK, GT_PM
}
const GT_MWM = GT_MOTIF; // for backward compatiblity
type TIMERSTATE is enum
{
TS_STARTED, TS_STOPPED, TS_PAUSED
}
/*** SYSTEM DRIVER DECLARATION ***/
driver "SYSTEM"
autoload
cmdline "systd"
{
}